package com.ict.ms.trackPlayBack.facade.common; /**
 * Created by chitanda on 2017/10/27.
 */

public class testCircle2 {
    public static void main(String argus[])
    {
//        //测试扇形
//        CircularSectorWithLongitudeCrossed180 circularSector = new CircularSectorWithLongitudeCrossed180(-179.391235,41.118975,5000000,5,90);
//        CircularSectorWithLongitudeCrossed180 circularSector180 = new CircularSectorWithLongitudeCrossed180(-179.391235,41.118975,5000000,300,90);
//        System.out.println(circularSector.containsPoint(120.2818033333333,22.61429166666667));
//        System.out.println(circularSector.containsPoint(-177.757880,39.403765));
//        System.out.println(circularSector180.containsPoint(-177.1194030,41.689244));
//        System.out.println(circularSector180.containsPoint(-178.757880,39.403765));

        // 测试扇环
        AnnularSectorWithLongitudeCrossed180 annularSector = new AnnularSectorWithLongitudeCrossed180(121.0748291015625,22.60818655,37718.989144,121.885455,201.1612598,114631.19843);
//        AnnularSectorWithLongitudeCrossed180 annularSector180 = new AnnularSectorWithLongitudeCrossed180(-179.391235,41.118975,500000,5,90,300000);
        System.out.println(annularSector.containsPoint(120.2818033333333,22.61429166666667));
//        System.out.println(annularSector.containsPoint(-177.871859,41.995571));
//        System.out.println(annularSector180.containsPoint(-175.763248,43.460682));
//        System.out.println(annularSector180.containsPoint(-177.871859,41.995571));
    }
}
